Determining the Version of TextEdit
Determining the Version of TextEdit
You can determine the version of TextEdit using the Gestalt selector
gestaltTextEditVersion. When you call Gestalt with this selector, the result
returned in the response parameter identifies the current version of
TextEdit. If the Gestalt function returns the gestaltUndefSelectorErr result
code, an earlier version of TextEdit without Script Manager compatibility
is installed.
gestaltTE1 U.S. system software version 6.0.4 containing TextEdit on a
Macintosh IIci
gestaltTE2 version 6.0.4 non-Roman script system containing a
Script Manager-compatible version of TextEdit including
the new measuring hook nWIDTHHook for the Macintosh IIci
gestaltTE3 version 6.0.4 non-Roman script system containing a
Script Manager-compatible version of TextEdit including
the new measuring hook nWIDTHHook for Macintosh Plus,
Macintosh SE, Macintosh SE/30, Macintosh II, Macintosh
Por table, Macintosh IIx, or Macintosh IIcx}
gestaltTE4 system software versions 6.0.5 and later, which contain a
Script Manager-compatible version of TextEdit including
the new measuring hook nWIDTHHook & the
outline-highlighting & text- buffering features, on any
Macintosh
gestaltTE5 system software version 7.0, which contains a
Script Manager-compatible version of TextEdit including
two new measuring hooks, nWIDTHHook & TextWidthHook,
outline highlighting, text buffering, new features for inline
input, & } capability to disable inline input
TextEdit is Script Manager-compatible if the returned value is
gestaltTE2 or greater. TextEdit contains the new measuring hook
nWIDTHHook if the returned value is gestaltTE2 or greater.
The outline-highlighting and text- buffering features of TextEdit, included
with the function TEFeatureFlag, are available if the returned value is
gestaltTE4 or greater. Outline highlighting, text buffering, new features for
inline input, and the capability to disable inline input, included with the
function TEFeatureFlag, are available if the returned value is gestaltTE5 or
greater.
The new measuring hook TextWidthHook is available if the returned value is
gestaltTE5 or greater.
For more on the TEFeatureFlag function, see TEFeatureFlag. For more on
TextEdit's width measuring hooks, see TextEdit Width Hooks.